<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@page import="com.neuedu.entity.Emp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" import="com.neuedu.dto.*,java.util.*"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
	table{
		border: solid 1px #666;
		border-collapse: collapse;
		width: 700px;
	}
	
	tr,td,th{
				border: solid 1px #666;
				text-align: center;
	}
	div{
		margin-top:20px;
		width: 700px;
		text-align: center;
	}
	a{
		text-decoration: none;
	}
</style>


</head>
<body>
<table>
	<tr>
		<th>empno</th>
		<th>ename</th>
		<th>job</th>
		<th>mgr</th>
		<th>hiredate</th>
		<th>sal</th>
		<th>comm</th>
		<th>deptno</th>
	</tr>
	<c:forEach items="${dto.list }" var="emp">
	<tr>
		<td>${emp.empno }</td>
		<td>${emp.ename}</td>
		<td>${emp.job}</td>
		<td>${emp.mgr}</td>
		<td>${emp.hiredate}</td>
		<td>${emp.sal}</td>
		<td>${emp.comm}</td>
		<td>${emp.deptno}</td>
	</tr>
	 </c:forEach>
</table>
<div>
	<a href="FenYeServlet?pageNum=1">首页</a> 
	<a href="FenYeServlet?pageNum=${dto.preNum}">上一页</a>
	${dto.preNum}/${dto.totalPage}  
	<a href="FenYeServlet?pageNum=${dto.nextNum}">下一页</a>
	<a href="FenYeServlet?pageNum=${dto.totalPage}">末页</a></br>
	
</div>



</body>
</html>